# todo 一次读取多条数据

# f = open("test/test02.txt",encoding="utf8")
#
# list = f.readlines()
#
# for i in list:
#     print(i)
#
# f.close()

# todo 一次读取一条数据
# f = open("test/test02.txt",encoding="utf8")

# list = f.readline()
# print(list, end=" ")
# list = f.readline()
# print(list, end=" ")
# list = f.readline()
# print(list, end=" ")
# f.close()


# todo 以二进制读取文件‘
f = open("test/test02.txt","rb")
content = f.read(5)
print(content)